import request from '@/utils/request'

// 查询扶贫物资申领列表
export function listApplicationPovertyMaterials(query) {
  return request({
    url: '/rural/ApplicationPovertyMaterials/list',
    method: 'get',
    params: query
  })
}

// 查询扶贫物资申领详细
export function getApplicationPovertyMaterials(id) {
  return request({
    url: '/rural/ApplicationPovertyMaterials/' + id,
    method: 'get'
  })
}

// 新增扶贫物资申领
export function addApplicationPovertyMaterials(data) {
  return request({
    url: '/rural/ApplicationPovertyMaterials',
    method: 'post',
    data: data
  })
}

// 修改扶贫物资申领
export function updateApplicationPovertyMaterials(data) {
  return request({
    url: '/rural/ApplicationPovertyMaterials',
    method: 'put',
    data: data
  })
}

// 删除扶贫物资申领
export function delApplicationPovertyMaterials(id) {
  return request({
    url: '/rural/ApplicationPovertyMaterials/' + id,
    method: 'delete'
  })
}


// 确认扶贫物资已到货
export function confirmApplicationPovertyMaterials(data) {
  return request({
    url: '/rural/ApplicationPovertyMaterials/confirm',
    method: 'put',
    data: data
  })
}
